package cn.tedu._05weibo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


import java.util.Date;

@Data
public class WeiboDetailVO {
    @ApiModelProperty(value = "微博id",required = true)
    private Long id;
    @ApiModelProperty(value = "微博内容",required = true)
    private String content;
    @ApiModelProperty(value = "用户昵称",required = true)
    private String nickname;
    /*
        JsonFormat注解:
        1.pattern: 日期时间格式: 小大小,大小小
            1.1格式1:yyyy-MM-dd HH: mm : ss
            1.2格式2: yyyy/MM/dd HH: mm : ss
            1.3格式3: yyyy年MM月dd日 HH时mm分ss秒
        2.timezone: 时区,默认是UTC
            2.1 时区: Asia/Shanghai
            2.2 时区: GMT+8

     */
    @ApiModelProperty(value = "创建时间",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date created;
}
